package com.ovopark.firecar.bean;

import java.io.Serializable;

/**
 * Created by Shawn on 2018/3/27.
 */

public class UserBo implements Serializable {
    private Integer id;

    private Integer userId;            //用户id

    private String userName;        //用户显示名

    private String showName;        //用户显示名

    private String shortName;        //用户显示头像(在没设置头像时使用)

    private String picture;        //用户头像

    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public UserBo(User user) {
        this.setShowName(user.getShowName());
        this.setStatus(null);
        this.setUserName(user.getUserName());
        this.setShortName(user.getShortName());
        this.setUserId(user.getId());
        this.setPicture(user.getThumbUrl());
        this.setId(user.getId());
    }

    public UserBo() {
    }


}
